package treeHoleSERVICE;

import java.util.Comparator;

/**
 * @program:IntelliJ IDEA
 * @Description:比较时间前后
 * @author:Mr.CheCheHuiBujianO
 * @data: 2022/6/19 17:46
 */
public class OrderByDate implements Comparator<User.UserHistory> {
    @Override
    public int compare(User.UserHistory o1, User.UserHistory o2) {
        return o1.releaseTime.compareTo(o2.releaseTime);
    }
}
